package com.google.code.hibernate.rest.method;

/**
 * 
 * @author wangzijian
 * 
 */
public class UnsupportedMethodException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private final String method;
	private final String uri;

	public UnsupportedMethodException(String method, String uri) {
		super("Unsupported method '" + method + "' for " + uri);
		this.method = method;
		this.uri = uri;
	}

	public String getMethod() {
		return method;
	}

	public String getUri() {
		return uri;
	}

}
